Class Connection

Summary

Fully Qualified Name: Laminas\Db\Adapter\Driver\Mysqli\Connection
Extends: AbstractConnection

Description

Methods

Name Description Defined By
__construct() Constructor Connection
beginTransaction() {@inheritDoc} Connection
commit() {@inheritDoc} Connection
connect() {@inheritDoc} Connection
disconnect() {@inheritDoc} Connection
execute() {@inheritDoc} Connection
getConnectionParameters() Get connection parameters AbstractConnection
getCurrentSchema() {@inheritDoc} Connection
getDriverName() Get driver name AbstractConnection
getLastGeneratedValue() {@inheritDoc} Connection
getProfiler() AbstractConnection
getResource() {@inheritDoc} AbstractConnection
inTransaction() Checks whether the connection is in transaction state. AbstractConnection
isConnected() {@inheritDoc} Connection
rollback() {@inheritDoc} Connection
setConnectionParameters() AbstractConnection
setDriver() Connection
setProfiler() {@inheritDoc} AbstractConnection
setResource() Set resource Connection

Method Details

__construct()

Constructor

Parameter Name Type Description
$connectionInfo array|\mysqli|null

Returns:

beginTransaction()

{@inheritDoc}

Returns:

commit()

{@inheritDoc}

Returns:

connect()

{@inheritDoc}

Returns:

disconnect()

{@inheritDoc}

Returns:

execute()

{@inheritDoc}

Parameter Name Type Description
$sql

Returns:

getConnectionParameters()

Get connection parameters

Returns: array

getCurrentSchema()

{@inheritDoc}

Returns:

getDriverName()

Get driver name

Returns: null|string

getLastGeneratedValue()

{@inheritDoc}

Parameter Name Type Description
$name

Returns:

getProfiler()

Returns: null|\ProfilerInterface

getResource()

{@inheritDoc}

Returns: resource

inTransaction()

Checks whether the connection is in transaction state.

Returns: bool

isConnected()

{@inheritDoc}

Returns:

rollback()

{@inheritDoc}

Returns:

setConnectionParameters()

Parameter Name Type Description
$connectionParameters array

Returns: self Provides a fluent interface

setDriver()

Parameter Name Type Description
$driver \Mysqli

Returns: self Provides a fluent interface

setProfiler()

{@inheritDoc}

Parameter Name Type Description
$profiler

Returns: self Provides a fluent interface

setResource()

Set resource

Parameter Name Type Description
$resource \mysqli

Returns: self Provides a fluent interface

Top